package cn.com.elite;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class TestServlet extends HttpServlet{
	public void doGet(HttpServletRequest request,HttpServletResponse response){
		this.doPost(request, response);
	}
	
	public void doPost(HttpServletRequest request,HttpServletResponse response){
		String return_xml="<?xml version='1.0' encoding='UTF-8'?><Result><Code>CS01</Code><Msg>与太寿接口网络不通,请联系发卡行</Msg></Result>";
		response.setCharacterEncoding("gb2312");
		response.setContentType("text/html;charset=UTF-8");
	    PrintWriter out;
		try {
			out=response.getWriter();
			out.print(return_xml);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
